package org.t236.feign.order;

import org.springframework.stereotype.Component;
import org.t236.commons.model.AjaxResult;

@Component
public class OrderRemoteClientFallback implements OrderRemoteClient{
    @Override
    public AjaxResult find() {
        return AjaxResult.error("订单微服务find()方法正忙，请稍后访问");
    }

    @Override
    public AjaxResult findByUserId(Long userId) {
        return AjaxResult.error("订单微服务findByUserId(" +userId+")方法正忙，请稍后访问");
    }
}
